package ua.in.iticket.addressbook.userinterface;

import ua.in.iticket.addressbook.person.Address;
import ua.in.iticket.addressbook.person.Person;
import ua.in.iticket.addressbook.person.PhoneNumber;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * Created by andrey on 13.02.14.
 */
public class test {
    public static void main(String[] args){
        UIPerson iu = new UIPerson();
        Person aTest, bTest, cTest, tester,tester1;
        List<PhoneNumber> phoneNumbers = new LinkedList<PhoneNumber>();
        phoneNumbers.add( new PhoneNumber("+17","056","1234567"));
        phoneNumbers.add( new PhoneNumber("+17","056","1234567"));
        phoneNumbers.add( new PhoneNumber("+17","056","1234567"));
        phoneNumbers.add( new PhoneNumber("+38","067","7654321"));
        phoneNumbers.add( new PhoneNumber("+56","028","4444444"));
        aTest = new Person( 25, "Ivanov Petr Sydorovich", phoneNumbers, new Address("Russia", "Moscow", "Petrova street,5-1"));
        iu.printPerson(aTest);
        bTest = iu.updatePerson(aTest);
        System.out.println("Source: ");
        iu.printPerson(aTest);
        System.out.println("Result: ");
        iu.printPerson(bTest);
    }
    }

